package com.example.houselease.service.impl;

import com.example.houselease.mapper.PermissionMapper;
import com.example.houselease.pojo.vo.PermissionTemplateListVO;
import com.example.houselease.service.IPermissionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 权限 service 实现类
 * @author sf
 * @version 0.0.1
 * */
@Service
@Slf4j
public class IPermissionServiceImpl implements IPermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<PermissionTemplateListVO> list() {
        return permissionMapper.select();
    }
}
